<template>
  <div class="ground-glass">
    <div class="main"></div>
    <div class="modal"></div>
  </div>
</template>

<script setup lang="ts">

</script>


<style scoped lang="scss">
.ground-glass {
  height: 700px;
  width: 100%;
  position: relative;
  cursor: pointer;

  .main {
    height: 100%;
    width: 100%;
    background-image: url("https://images2.alphacoders.com/135/thumb-1920-1356617.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }

  &:hover .modal {
    width: 0;
  }

  .modal {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    transition: all 2s;
    border-left: 5px solid #333;
    backdrop-filter: grayscale(1);
  }
}
</style>
